package com.base;

import com.result.ResultEnum;

public class BaseException extends RuntimeException {

    private Integer code;

    private String msg;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BaseException() {

    }

    public BaseException(String msg) {
        this.code = ResultEnum.ERROR.getCode();
        this.msg = msg;
        this.message = msg;
    }

    public BaseException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
        this.message = msg;
    }

}
